FROM wick.zt/alpine:3.7

MAINTAINER WickzT<wick.zt@gmail.com>


ENV MONGO_EXPRESS=0.46.0 \
    ME_CONFIG_EDITORTHEME="default" \
    ME_CONFIG_MONGODB_SERVER="mongo" \
    ME_CONFIG_MONGODB_ENABLE_ADMIN="true" \
    ME_CONFIG_BASICAUTH_USERNAME="" \
    ME_CONFIG_BASICAUTH_PASSWORD="" \
    VCAP_APP_HOST="0.0.0.0"


RUN set -x \
    && apk add --no-cache nodejs \
    && npm install --registry=https://registry.npm.taobao.org mongo-express@$MONGO_EXPRESS

EXPOSE 8081

WORKDIR /node_modules/mongo-express

CMD [ "node", "app" ]
